const formRules = {
  beVisitedPersonName: [{ required: true, message: '请选择拜访对象' }],
  startTime: [{ required: true, message: '请选择预计来访时间' }],
  endTime: [{ required: true, message: '请选择预计离开时间' }],
  purpose: [{ required: true, message: '请输入来访事由' }],
  personName: [{ required: true, message: '请输入姓名' }],
  sex: [{ required: true, message: '请选择性别' }],
  phone: [
    { required: true, message: '请输入联系电话' },
    { regex: /^1\d{10}$|^0[0-9]{2,3}-[0-9]{7,8}$/, message: '请输入正确的手机号码' },
  ],
  idNo: [{ required: true, message: '请输入身份证' }],
  fileUrl: [{ required: true, message: '请上传头像照片' }],
};

export { formRules };
